<h1>Listing volunteers</h1>

<table>
  <tr>
    <td>申请者账号</td>
    <td>申请者姓名</td>
    <td>申请时间时间</td>
  </tr>

<% @volunteers.each do |volunteer| %>
  <tr>
    <td><%=h volunteer.account %></td>
    <td><%=h volunteer.name %></td>
    <td><%=h volunteer.created_at %></td>
   </tr>
    <p>
    <td><%= link_to 'Show', volunteer %></td>
    <td><%= link_to 'Edit', edit_volunteer_path(volunteer) %></td>
    <td><%= link_to 'Destroy', volunteer, :confirm => 'Are you sure?', :method => :delete %></td>
  </p>
<% end %>
</table>

<br />

<%= link_to 'New volunteer', new_volunteer_path %>